Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Country-Specific Dashboard Endpoint #704

Closed
wants to merge 405 commits into from

Conversation

cmanciero
Copy link
Collaborator

Country specific dashboards

Description

Pull Request Description: Add Country-Specific Dashboard Endpoint

Description: This PR introduces a new endpoint, /dashboard/<COUNTRY_ISO>, designed to display country-specific dashboards. This endpoint allows users to access detailed ecological and species-related information for a particular country or its regions.

Key Features:

  1. Token-Gated Access:
    • The endpoint is protected by ESRI login credentials to ensure that only authorized users can access the data.
    • Once ESRI credentials are verified, users can view the dashboard.
  2. Country and Region-Specific Data Navigation:
    • Users can navigate through species information for specific countries and their regions.
    • Detailed data includes species information, occurrence data, trends, and score distributions.
  3. Data Scope:
    • Data can be scoped at the country or regional level, providing a broad overview or focused regional insights based on the selected area.

Purpose:
This new endpoint aims to enhance the user experience by providing localized ecological insights, facilitating research, and supporting conservation efforts with accessible and specific species and environmental data.

Testing and Validation:

  • Ensure ESRI token verification works as expected.
  • Verify that data for selected countries and regions is accurate and displayed correctly.
  • Confirm that users can view species information, occurrence data, trends, and scores accurately at both country and region levels.

@mluena
Copy link
Collaborator

mluena commented Jan 14, 2025

Some files exceed 1MB (e.g), which could potentially be reduced to optimize performance. Additionally, there are images with the same name but different extensions (guinea.png and guinea.jpeg)—are both being used or could this be simplified?

While I was checking the PR I tested a bit the UI, I know this is a WIP but just in case you haven't spotted them and can be useful:
SPI is not aligned. Maybe remove the decimal when the percentage is 0 or 100%?
Screenshot 2025-01-15 at 00 26 29
"Clear filters" is not aligned (it's a bit weird to me but I don't have the design, maybe it's correct)
Screenshot 2025-01-15 at 00 24 53
The input has different size and padding (inside and outside),
Screenshot 2025-01-15 at 00 23 12

Screenshot 2025-01-15 at 00 23 00

"Select a region type..." it is smaller than the texts appearing in the rest of the tabs which makes a little jump when you change from one to another

Screenshot 2025-01-15 at 00 22 24

The content in the dropdown is not taking full-size
Screenshot 2025-01-15 at 00 22 07

@cmanciero cmanciero closed this Jan 15, 2025
@cmanciero
Copy link
Collaborator Author

Closing pull request to update code to be aligned with existing practices and patterns before submitting for review again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants